package com.mmy.controller.bidtender;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mmy.domain.bidtender.TBidDetailed;
import com.mmy.service.impl.bidtender.BidDetailedServiceImpl;

@Controller
public class BidDetailedController {
	@Autowired
	BidDetailedServiceImpl bidDetailedServiceImpl;

	/**
	 * 函数功能说明：后台 查看投标信息的明细详情
	 *
	 * @param 参数说明 tBidDetailed
	 * @return 返回值说明 jsp页面
	 * @throws 异常处理说明
	 * @author 创建人 hanxl
	 * @date 创建日期 2020.11.19
	 */

	@RequestMapping(value = "/togetbiddetailed")
	public String toGetBidDetailed(HttpServletRequest request, Model model) {
		String strTender = request.getParameter("iTenderID");
		// 查看投标明细信息
		List<TBidDetailed> lstBidDetailed = bidDetailedServiceImpl.findByTenderID(strTender);
		model.addAttribute("lstBidDetailed", lstBidDetailed);

		return "webbackground/bidtendermanagement/BidDetailedInfo";
	}

}
